import request from '@/utils/request'

// 合同保存修改
export function SaveHT(data) {
    return request({
        url: '/api/Base/SaveHT',
        method: 'post',
        data: data
    })
}

// 查询合同列表
export function getHTByPage(data) {
    return request({
        url: '/api/Base/GetHTByPage',
        method: 'post',
        data: data
    })
}
export function getHTBGPage(data) {
    return request({
        url: '/api/Base/GetHTBGPage',
        method: 'post',
        data: data
    })
}

// 查询合同版本列表
export function getContractVersion(data) {
    return request({
        url: '/api/Base/GetHTV',
        method: 'post',
        data: data
    })
}

// 删除数据
export function delHT(data) {
    return request({
        url: '/api/Base/DelHT',
        method: 'post',
        data: data
    })
}


// 生成订单
export function generateOrder(data) {
    return request({
        url: '/api/Base/AutoCreateXS',
        method: 'post',
        data: data
    })
}

// 变更审核
export function ChangePass(data) {
    return request({
        url: '/api/Base/ChangePass',
        method: 'post',
        data: data
    })
}

// 变更审核
export function contractImport(data) {
    return request({
        url: '/api/Base/contractImport',
        method: 'post',
        data: data
    })
}

// 变更审核
export function importExcel(data) {
    return request({
        url: '/api/Base/ImportExcel',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data: data
    })
}

// 合同转换
export function contractChange(data) {
    return request({
        url: '/api/Base/VirtualToFormal',
        method: 'get',
        params: data
    })
}


// 合同报表
export function contractReport(data) {
    return request({
        url: '/api/Base/GetHTTZ',
        method: 'post',
        data: data
    })
}


// 期初合同保存
export function SaveQCHT(data) {
    return request({
        url: '/api/BeginDataMng/SaveHT',
        method: 'post',
        data: data
    })
}


// 合同报表
export function GetPageData(data) {
    return request({
        url: '/api/BeginDataMng/GetPageData',
        method: 'post',
        data: data
    })
}


// 合同报表
export function BeginDataMngAdd(data) {
    return request({
        url: '/api/BeginDataMng/Add',
        method: 'post',
        data: data
    })
}

// 合同报表
export function BeginDataMngUpdate(data) {
    return request({
        url: '/api/BeginDataMng/Update',
        method: 'post',
        data: data
    })
}



// 删除合同
export function BeginDataMngDel(params) {
    return request({
        url: '/api/BeginDataMng/Delete',
        method: 'get',
        params: params
    })
}


// 导入合同
export function QcImoprtExcel(data) {
    return request({
        url: '/api/BeginDataMng/QcImoprtExcel',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data: data
    })
}

// 合同报表
export function GetSJHTTZReport(data) {
    return request({
        url: '/api/Base/GetSJHTTZ',
        method: 'post',
        responseType: 'blob',
        data: data
    })
}





// 合同保存修改
export function SaveHTFile(data) {
    return request({
        url: '/api/Base/SaveHTFile',
        method: 'post',
        data: data
    })
}

//模版新增
export function TempLateAdd(data) {
    return request({
        url: '/api/H_contractM_TempLate/Add',
        method: 'post',
        data: data
    })
}


//模版列表

export function getTempLateByPage(data) {
    return request({
        url: '/api/H_contractM_TempLate/GetHTDatas',
        method: 'get',
        params: data
    })
}

